<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="node_modules/jquery/dist/jquery.js"></script>
    <style lang="">
        div {
            width: 200px;
            height: 40px;
            text-align: center;
            line-height: 40px;
            background: red;
        }
    </style>
</head>

<body>
    <div id="demo">点我</div>
    <img src="img/0.jpg" alt="">
</body>

</html>
<script>
    $("#demo").click(function() {
        $("img").toggle(600);
    })
</script>